﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Core
{
    public class Role : ICodeEntity
    {
        /// <summary>
        /// 标识
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Caption { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }
        /// <summary>
        /// 角色所属的模块
        /// </summary>
        public string RefModule { get; set; }
        public Guid RefId { get; set; }

        /// <summary>
        /// 角色类型
        /// </summary>
        public string Type { get; set; }

        public Role()
        {
        }

        public Role(Guid id, string code, string caption, string module, string type)
        {
            this.Id = id;
            this.Code = code;
            this.Caption = caption;
            this.RefModule = module;
            this.Type = type;
        }

        public void Validation()
        {
            throw new NotImplementedException();
        }
    }
}
